#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "PlaceManger.h"
#include "placemangerwindow.h"
#include "centralwidget.h"
#include "routeplanwid.h"
#include "resshowwid.h"
#include <QTableWidgetItem>
#include "mytool.h"
#include "bicyclemangerwindow.h"
#include "aboutwid.h"
#include "mapplacesearchwid.h"
#include "helpwid.h"
#include <QHBoxLayout>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public slots:
    void ToPlaceWid();
    void AddItem(int length);
    void GJAddItem(gjlx*,int,gjlx*,int);
    void AddAllItem(int,gjlx*,int,gjlx*,int);
signals:

public:
    explicit MainWindow(QWidget *parent = 0);
    void showBic(int,int=1);
    void showGJ(gjlx *path, int length,int=1);
    void showWalk(int,int=1);
    void showMinStation(gjlx *path, int length,int=1);
    ~MainWindow();
private:
    int row;
    PlaceMangerWindow *placeWin;
    CentralWidget *centraWid;
    RoutePlanWid *routeWid;
    ResShowWid *resShowWid;
    BicycleMangerWindow *bicycleWin;
    AboutWid *aboutWid;
    HelpWid *helpWid;
    double walkSpeed;
    double bicycleSpeed;
    double busSpeed;
    double eachWidth;   //每个方格的宽度
    MapPlaceSearchWid *MapPlaceSearch;
};

#endif // MAINWINDOW_H
